﻿<%@ Page Language="vb" ContentType="text/xml" AutoEventWireup="false" CodeBehind="RSS.aspx.vb" Inherits="HausaMathTermdev.RSS" %>

    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
        ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" 
        
        
    SelectCommand="SELECT [TermID], [Mathterm], [Definition], [Hausaterm], [PictureSymbol], [SiteAdd], [DDate], [Remark], [Category], [Author] FROM [Terms]">
    </asp:SqlDataSource>

<asp:Repeater id="rptRSS" runat="server" DataSourceID="SqlDataSource1">
  <HeaderTemplate>
    <rss version="2.0">
      <channel>
        <title> Math Terms </title>
        <description> Math terms and illustrations </description>
  </HeaderTemplate>
  <ItemTemplate>
        <item>
          <title><%# FormatForXML(DataBinder.Eval(Container.DataItem, "Mathterm"))%></title>
          <description><%# FormatForXML(DataBinder.Eval(Container.DataItem, "Definition"))%></description>
          <link> Details.aspx?TermID=<%# FormatForXML(DataBinder.Eval(Container.DataItem, "TermID"))%></link><author><%# FormatForXML(DataBinder.Eval(Container.DataItem, "Author"))%></author>
          <pubDate><%# FormatForXML(DataBinder.Eval(Container.DataItem, "DDate"))%></pubDate>
        </item>
  </ItemTemplate>
  <FooterTemplate>
      </channel>
    </rss>  
  </FooterTemplate>
</asp:Repeater>

